package cn.iocoder.yudao.module.biz.controller.admin.operationTicket.vo;

import cn.iocoder.yudao.framework.common.util.date.DateUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

@ApiModel("管理后台 - 操作票更新 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class BizOperationTicketUpdateReqVO extends BizOperationTicketBaseVO {

    @ApiModelProperty(value = "", required = true)
    @NotNull(message = "不能为空")
    private String id;

    @ApiModelProperty(value = "任务名称")
    private String name;

    @ApiModelProperty(value = "部门id")
    private String deptName;

    @ApiModelProperty(value = "作业类型")
    private Integer type;

    @ApiModelProperty(value = "发令人")
    private String sendPeople;

    @ApiModelProperty(value = "操作人")
    private String operator;

    @ApiModelProperty(value = "监护人")
    private String guardian;

    @ApiModelProperty(value = "开始时间")
    @DateTimeFormat(pattern = DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    @DateTimeFormat(pattern = DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date endTime;

    @ApiModelProperty(value = "操作票图片")
    private String image;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private Date crateTime;

    @ApiModelProperty(value = "部门id")
    private String deptId;

}
